﻿@{
    ViewBag.Title = "缓存&页面 管理";
}
<script src="~/Content/js/site/cache.js"></script>
<div class="am-cf am-padding">
    <div class="am-fl am-cf">
        <strong class="am-text-primary am-text-lg">缓存&页面</strong> /
        <small>Cache & Generation</small>
    </div>
</div>
<div class="am-g" style="margin-left: 20px;" ms-controller="cache">
    @*<div class="am-u-sm-4">
        <div class="am-panel-group" id="accordion">
            <div class="am-panel am-panel-default">
                <div class="am-panel-hd">
                    <h4 class="am-panel-title" data-am-collapse="{}">缓存管理
                    </h4>
                </div>
                <table class="am-table">
                    @foreach (var value in Enum.GetNames(typeof(MvcApplication.Entity.Caches)))
                    {
                        <tr>
                            <td class="am-u-sm-9">@value</td>
                            <td class="am-u-sm-3">
                                <button class="am-btn am-btn-primary am-btn-xs" 
                                    type="button" ms-click="clear('@(value)')">清除缓存</button>
                            </td>
                        </tr>
                    }
                </table>
            </div>
        </div>
    </div>*@
    <div class="am-u-sm-4">
        <div class="am-panel-group">
            <div class="am-panel am-panel-default">
                <div class="am-panel-hd">
                    <h4 class="am-panel-title" data-am-collapse="{}">页面生成管理
                    </h4>
                </div>
                <table class="am-table">
                   @foreach (var value in Enum.GetNames(typeof(MvcApplication.Entity.DisplayPage)))
                    {
                        <tr>
                            <td class="am-u-sm-9">@value</td>
                            <td class="am-u-sm-3">
                                <button class="am-btn am-btn-primary am-btn-xs" 
                                    data-ajax                                    
                                    type="button" ms-click="generation('@(value)')">清除</button>
                            </td>
                        </tr>
                    }
                </table>
            </div>
        </div>
    </div>
    <div class="am-u-sm-4">
    </div>
</div>
